package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.liucheng.model.HuanJie;
import com.cpecc.model.system.User;

@Entity
@Table(name = "DATA_WUZI_HUANHUO")
public class HuanHuo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 765535379327227291L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@Column
	private int liuChengLX;
	
	@ManyToOne
	@JoinColumn(name="SHENQING_ID")
	private ShenQing shenQing;
	
	@ManyToOne
	@JoinColumn(name="WEIXIU_ID")
	private WeiXiu weiXiu;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@Column
	private Date shenQingRQ;
	
	@Column(length=32)
	private String yuanChanPinXLH;
	
	@Column(length=32)
	private String xinChanPinXLH;
	
	@Column(length=64)
	private String huanHuoYY;
	
	@ManyToOne
	@JoinColumn(name="HUANJIE_ID")
	private HuanJie huanJie;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getLiuChengLX() {
		return liuChengLX;
	}

	public void setLiuChengLX(int liuChengLX) {
		this.liuChengLX = liuChengLX;
	}

	public ShenQing getShenQing() {
		return shenQing;
	}

	public void setShenQing(ShenQing shenQing) {
		this.shenQing = shenQing;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getShenQingRQ() {
		return shenQingRQ;
	}

	public void setShenQingRQ(Date shenQingRQ) {
		this.shenQingRQ = shenQingRQ;
	}

	public String getYuanChanPinXLH() {
		return yuanChanPinXLH;
	}

	public void setYuanChanPinXLH(String yuanChanPinXLH) {
		this.yuanChanPinXLH = yuanChanPinXLH;
	}

	public String getXinChanPinXLH() {
		return xinChanPinXLH;
	}

	public void setXinChanPinXLH(String xinChanPinXLH) {
		this.xinChanPinXLH = xinChanPinXLH;
	}

	public String getHuanHuoYY() {
		return huanHuoYY;
	}

	public void setHuanHuoYY(String huanHuoYY) {
		this.huanHuoYY = huanHuoYY;
	}	

	public HuanJie getHuanJie() {
		return huanJie;
	}

	public void setHuanJie(HuanJie huanJie) {
		this.huanJie = huanJie;
	}

	public WeiXiu getWeiXiu() {
		return weiXiu;
	}

	public void setWeiXiu(WeiXiu weiXiu) {
		this.weiXiu = weiXiu;
	}	

	public HuanHuo(String id, int liuChengLX, ShenQing shenQing, WeiXiu weiXiu,
			WuZi wuZi, User user, Date shenQingRQ, String yuanChanPinXLH,
			String xinChanPinXLH, String huanHuoYY, HuanJie huanJie) {
		super();
		this.id = id;
		this.liuChengLX = liuChengLX;
		this.shenQing = shenQing;
		this.weiXiu = weiXiu;
		this.wuZi = wuZi;
		this.user = user;
		this.shenQingRQ = shenQingRQ;
		this.yuanChanPinXLH = yuanChanPinXLH;
		this.xinChanPinXLH = xinChanPinXLH;
		this.huanHuoYY = huanHuoYY;
		this.huanJie = huanJie;
	}

	public HuanHuo() {
		super();
	}	
}
